package io.nutz.nutzsite.module.exam.models;

import io.nutz.nutzsite.common.base.BaseModel;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;

import org.nutz.dao.entity.annotation.*;
import java.io.Serializable;
						
/**
 * 考场表 exam_room
 * 
 * @author lrw
 * @date 2020-04-08
 */
@Table("exam_room")
public class Room extends BaseModel implements Serializable {
	private static final long serialVersionUID = 1L;
	
			@Id
		@Column("kcid")
	@Comment("考场号")
	@ColDefine(type = ColType.VARCHAR, width = 64)
	private Integer kcid;

		/** 考场名称 */
	@Column("kcname")
	@Comment("考场名称")
	private String kcname;

		/** 容考人数 */
	@Column("acnum")
	@Comment("容考人数")
	private Integer acnum;

		/** 是否使用0禁用1启用 */
	@Column("status")
	@Comment("是否使用0禁用1启用")
	private Integer status;

		/** IP */
	@Column("ip")
	@Comment("IP")
	private String ip;

		/** 机器数 */
	@Column("pcnum")
	@Comment("机器数")
	private Integer pcnum;

	
	public void setKcid(Integer kcid) 
	{
		this.kcid = kcid;
	}

	public Integer getKcid() 
	{
		return kcid;
	}

	public void setKcname(String kcname) 
	{
		this.kcname = kcname;
	}

	public String getKcname() 
	{
		return kcname;
	}

	public void setAcnum(Integer acnum) 
	{
		this.acnum = acnum;
	}

	public Integer getAcnum() 
	{
		return acnum;
	}

	public void setStatus(Integer status) 
	{
		this.status = status;
	}

	public Integer getStatus() 
	{
		return status;
	}

	public void setIp(String ip) 
	{
		this.ip = ip;
	}

	public String getIp() 
	{
		return ip;
	}

	public void setPcnum(Integer pcnum) 
	{
		this.pcnum = pcnum;
	}

	public Integer getPcnum() 
	{
		return pcnum;
	}

	@Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("kcid", getKcid())
            .append("kcname", getKcname())
            .append("acnum", getAcnum())
            .append("status", getStatus())
            .append("ip", getIp())
            .append("pcnum", getPcnum())
            .toString();
    }
}
